<{include file="scenter/block/header.html"}>
<div class="ucenter_t">
    <ul><li class="on">装修日记</li></ul>
    <span class="r"><a href="<{link ctl='scenter/member/diary:create'}>" class="pbtn">创建日记</a></span>
</div>
<div class="ucenter_c">
    <table width="100%" border="0" cellspacing="0" class="table">
    <tr><th>标题</th><th>小区</th><th class="w-100">状态</th><th class="w-50">审核</th><th class="w-150">创建时间</th><th class="w-200">操作</th></tr>
    <{foreach $items as $item}>
    <tr> 
        <td><{$item.title}></td><td><{$home_list[$item.home_id].name|default:'--'}></td>
        <td><{$item.status_title}></td><td><{if $item.audit}><b class="blue">正常</b><{else}><b class="red">待审</b><{/if}></td>
        <td><{$item.dateline|format}></td>
        <td>
            <a href="<{link ctl='scenter/member/diary:detail' arg0=$item.diary_id}>" class="pbtn">日记文章</a>
            <a href="<{link ctl='scenter/member/diary:edit' arg0=$item.diary_id}>" class="pbtn">修改</a>
            <a href="<{link ctl='scenter/member/diary:delete' arg0=$item.diary_id}>" mini-act="删除" mini-confirm="确定要删除吗？" class="pbtn red">删除</a>
        </td>
    </tr>
    <{foreachelse}>
     <tr><td colspan="20"><p class="tips"><span class="notice">没有数据</span></p></td></tr>
    <{/foreach}>
    </table>
	<div class="page"><{$pager.pagebar}></div>
</div>
<{include file="scenter/block/footer.html"}>